Skip to content

fix(material/menu): submenu icon not working in high contrast mode #23012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

crisbeto
Copy link
Member

Currently the submenu icon is rendered as a CSS triangle which turns into a rectangle in high contrast mode. These changes resolve the issue by using SVG for the icon instead.

Fixes #22944.

@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release labels Jun 18, 2021
@crisbeto crisbeto requested a review from jelbourn June 18, 2021 14:54
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 18, 2021
Currently the submenu icon is rendered as a CSS triangle which turns into a rectangle in high contrast mode. These changes resolve the issue by using SVG for the icon instead.

Fixes angular#22944.
@crisbeto crisbeto force-pushed the 22944/menu-submenu-icon-a11y branch from ab2f67a to 8f185b1 Compare June 18, 2021 15:07
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Jun 18, 2021
@jelbourn
Copy link
Member

Caretaker note: this is going to be screenshot city

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jun 18, 2021
@crisbeto
Copy link
Member Author

For what it's worth, I was verifying that the new icon size and position was the same as the old one by laying one on top of the other.

@mmalerba mmalerba added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Jun 22, 2021
@mmalerba mmalerba merged commit ad2baa6 into angular:master Jun 22, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note P2 The issue is important to a large percentage of users, with a workaround target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(menu): nested menu indicator renders weird in high contrast mode
3 participants